﻿/*
 * Created by SharpDevelop.
 * User: thanh.nguyenchi
 * Date: 12/2/2011
 * Time: 9:00 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace VDataAdapter.BlockingQueue
{
	public class BaseObject
	{
		private String objName = "BaseObject";
	    private int iResultCode;
	    private string sResultString;
	    private int iLine = 0;
	    
		public BaseObject()
		{
		}
		
		public BaseObject(int iCode, String sString){
			this.iResultCode = iCode;
			this.sResultString = sString;
		}
		public virtual string toString(){
        	return "{object:" + objName + ",code:" + iResultCode + ",result:" + sResultString + "}";
	    }
		
		public virtual string getObjectType(){
			return this.objName;
		}
		
		
	    public int getResultCode(){
	        return this.iResultCode;
	    }
	    public string getResultString(){
	        return this.sResultString;
	    }
	    
	    public void setResultCode(int i){
	        this.iResultCode = i;
	    }
	    
	    public void setResultString(String sResult){                   
	        this.sResultString = sResult;                        
	    } 
	}
}
